﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace blackhouse.IdentityCms.Business.Observables {
    public static class ObservablesComponent {

        #region Fields

        private static bool componentRegistered = false;
        private static object lockComponentRegistered = new object();

        #endregion

        public static void RegisterComponents()
        {
            if (!componentRegistered)
            {
                lock (lockComponentRegistered)
                {
                    componentRegistered = true;
                    RegisterLanguageObservables();
                }
            }
        }

        private static void RegisterLanguageObservables()
        {
            LanguagePageObserver observer = new LanguagePageObserver();
            observer.Observe();
        }

    }
}
